Skip to content

Explain SPACE in the README, with diagrams of its architecture and data flow - #268

Merged
saworbit merged 1 commit into
mainfrom
readme-overview-diagrams
Nov 16, 2026
Merged

saworbit merged 1 commit into
mainfrom
readme-overview-diagrams

Conversation

@saworbit

Copy link
Copy Markdown
Owner

What and why

The README listed features but did not say what SPACE is or how its parts fit together. This rewrite adds:

  • What SPACE is: capsules, views and segments, and how the pipeline order and the content-derived XTS tweak keep deduplication with encryption on, and what that costs (equal segments are visible).
  • Five Mermaid diagrams: the capsule model (views, capsules, shared segments), the crate architecture with the files each part writes, the write path with its commit point, the read path, and a sequence diagram of two writers sharing one segment.
  • What is on disk: which store files are truth and which are derived.
  • Background maintenance: reclaim, scrub and shutdown.
  • Quick start: build and test, store an object through S3, read it back with spacectl, and turn on encryption, with a caution about the key.
  • Limits and trade-offs, a documents table, project history and contributing links.

The text uses ASD-STE100 Simplified Technical English where it fits: short sentences, active voice, one instruction per step and no contractions. Code names, S3 operation names and the license paragraph stay as they were.

Type

  • Bug fix
  • New feature
  • Breaking change (on-disk format, CLI, S3 behaviour or public API)
  • Refactor or cleanup
  • Docs only
  • Build, CI or dependencies

Checklist

  • cargo fmt --all --check (no code changed)
  • cargo clippy --workspace --all-targets --locked -- -D warnings (no code changed)
  • cargo test --workspace --locked (no code changed)
  • RUSTDOCFLAGS="-D warnings" cargo doc --workspace --no-deps (no code changed)
  • typos
  • CHANGELOG.md has an entry, unless nothing user-facing changed
  • Docs match the change

Checked by hand:

  • The quick start steps run as written against a release build: the bucket and PUT return 200, the ETag is the capsule ID, GET returns the body, and spacectl list and read show the same capsule.
  • With SPACE_MASTER_KEY=$(openssl rand -hex 32), an encrypted store refuses writes without the key, and create, read and serve-s3 refuse a different key.
  • All five diagrams parse and render with Mermaid 11.4.1. Labels such as "1. Segment" rendered as "Unsupported markdown: list", so the steps are labelled "Step 1:" instead.
  • Every relative link and in-page anchor resolves.

Security

  • No secrets, tokens or keys added
  • External input (S3 requests, files, journal records) is validated (not applicable)
  • No new unsafe, or it is justified in a comment (not applicable)

…ta flow

The README listed features but did not say what SPACE is or how its parts
fit together. It now explains capsules, views and segments, and why the
pipeline's order and the content-derived XTS tweak keep deduplication with
encryption on, and what that costs.

Mermaid diagrams show the capsule model, the crates and the files they
write, the write path with its commit point, the read path, and two writers
sharing one segment. A table says which store files are truth and which are
derived, and a section covers reclaim, scrub and shutdown.

The quick start now stores an object through S3, reads it back with
spacectl, and turns on encryption, with a caution about the key. Limits and
trade-offs, a documents table and the project history follow.

The text uses ASD-STE100 Simplified Technical English where it fits: short
sentences, active voice, one instruction per step and no contractions.
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Nov 16, 2026
@saworbit
saworbit enabled auto-merge (squash) November 16, 2026 20:36
@saworbit
saworbit merged commit adcb05a into main Nov 16, 2026
18 checks passed
@saworbit
saworbit deleted the readme-overview-diagrams branch November 16, 2026 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant